﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000979 RID: 2425
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class InteractPropScRsp : IMessage<InteractPropScRsp>, IMessage, IEquatable<InteractPropScRsp>, IDeepCloneable<InteractPropScRsp>, IBufferMessage
	{
		// Token: 0x17001EB9 RID: 7865
		// (get) Token: 0x06006CDA RID: 27866 RVA: 0x00123F8D File Offset: 0x0012218D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<InteractPropScRsp> Parser
		{
			get
			{
				return InteractPropScRsp._parser;
			}
		}

		// Token: 0x17001EBA RID: 7866
		// (get) Token: 0x06006CDB RID: 27867 RVA: 0x00123F94 File Offset: 0x00122194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return InteractPropScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001EBB RID: 7867
		// (get) Token: 0x06006CDC RID: 27868 RVA: 0x00123FA6 File Offset: 0x001221A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return InteractPropScRsp.Descriptor;
			}
		}

		// Token: 0x06006CDD RID: 27869 RVA: 0x00123FAD File Offset: 0x001221AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractPropScRsp()
		{
		}

		// Token: 0x06006CDE RID: 27870 RVA: 0x00123FB5 File Offset: 0x001221B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractPropScRsp(InteractPropScRsp other) : this()
		{
			this.propState_ = other.propState_;
			this.propEntityId_ = other.propEntityId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006CDF RID: 27871 RVA: 0x00123FF2 File Offset: 0x001221F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractPropScRsp Clone()
		{
			return new InteractPropScRsp(this);
		}

		// Token: 0x17001EBC RID: 7868
		// (get) Token: 0x06006CE0 RID: 27872 RVA: 0x00123FFA File Offset: 0x001221FA
		// (set) Token: 0x06006CE1 RID: 27873 RVA: 0x00124002 File Offset: 0x00122202
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropState
		{
			get
			{
				return this.propState_;
			}
			set
			{
				this.propState_ = value;
			}
		}

		// Token: 0x17001EBD RID: 7869
		// (get) Token: 0x06006CE2 RID: 27874 RVA: 0x0012400B File Offset: 0x0012220B
		// (set) Token: 0x06006CE3 RID: 27875 RVA: 0x00124013 File Offset: 0x00122213
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropEntityId
		{
			get
			{
				return this.propEntityId_;
			}
			set
			{
				this.propEntityId_ = value;
			}
		}

		// Token: 0x17001EBE RID: 7870
		// (get) Token: 0x06006CE4 RID: 27876 RVA: 0x0012401C File Offset: 0x0012221C
		// (set) Token: 0x06006CE5 RID: 27877 RVA: 0x00124024 File Offset: 0x00122224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06006CE6 RID: 27878 RVA: 0x0012402D File Offset: 0x0012222D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as InteractPropScRsp);
		}

		// Token: 0x06006CE7 RID: 27879 RVA: 0x0012403C File Offset: 0x0012223C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(InteractPropScRsp other)
		{
			return other != null && (other == this || (this.PropState == other.PropState && this.PropEntityId == other.PropEntityId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006CE8 RID: 27880 RVA: 0x00124098 File Offset: 0x00122298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PropState != 0U)
			{
				num ^= this.PropState.GetHashCode();
			}
			if (this.PropEntityId != 0U)
			{
				num ^= this.PropEntityId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006CE9 RID: 27881 RVA: 0x00124109 File Offset: 0x00122309
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006CEA RID: 27882 RVA: 0x00124111 File Offset: 0x00122311
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006CEB RID: 27883 RVA: 0x0012411C File Offset: 0x0012231C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PropState != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.PropState);
			}
			if (this.PropEntityId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.PropEntityId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006CEC RID: 27884 RVA: 0x00124190 File Offset: 0x00122390
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PropState != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropState);
			}
			if (this.PropEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropEntityId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006CED RID: 27885 RVA: 0x00124200 File Offset: 0x00122400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(InteractPropScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PropState != 0U)
			{
				this.PropState = other.PropState;
			}
			if (other.PropEntityId != 0U)
			{
				this.PropEntityId = other.PropEntityId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006CEE RID: 27886 RVA: 0x00124264 File Offset: 0x00122464
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006CEF RID: 27887 RVA: 0x00124270 File Offset: 0x00122470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 72U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.PropEntityId = input.ReadUInt32();
					}
				}
				else
				{
					this.PropState = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002980 RID: 10624
		private static readonly MessageParser<InteractPropScRsp> _parser = new MessageParser<InteractPropScRsp>(() => new InteractPropScRsp());

		// Token: 0x04002981 RID: 10625
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002982 RID: 10626
		public const int PropStateFieldNumber = 1;

		// Token: 0x04002983 RID: 10627
		private uint propState_;

		// Token: 0x04002984 RID: 10628
		public const int PropEntityIdFieldNumber = 9;

		// Token: 0x04002985 RID: 10629
		private uint propEntityId_;

		// Token: 0x04002986 RID: 10630
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04002987 RID: 10631
		private uint retcode_;
	}
}
